728x90
반응형
VB 6 Functions C# code
Abs System.Math.Abs
Array New Object() { } 
Asc, AscB, AscW Microsoft.VisualBasic.Strings.Asc
Atn System.Math.Atan
Choose Interaction.Choose
CBool System.Convert.ToBoolean
CByte System.Convert.ToByte
CCur System.Convert.ToDecimal
CDate System.Convert.ToDateTime
CDbl System.Convert.ToDouble
Chr (char)
CInt System.Convert.ToInt32
CLng System.Convert.ToInt64
Cos System.Math.Cos
Command Interaction.Command
CreateObject CreateObject or New Instance in .NET
CStr System.Convert.ToString
CurDir FileSystem.CurDir
Date DateTime.Today
DateAdd Microsoft.VisualBasic.DateAndTime.DateAdd
DateDiff Microsoft.VisualBasic.DateAndTime.DateDiff
DatePart Microsoft.VisualBasic.DateAndTime.DatePart
DateSerial Microsoft.VisualBasic.DateAndTime.DateSerial
DateValue Microsoft.VisualBasic.DateAndTime.DateValue
Day Microsoft.VisualBasic.DateAndTime.Day
DDB Financial.DDB
Dir FileSystem.Dir
Environ Interaction.Environ 
Eof FileSystem.EOF 
Exp System.Math.Exp
FileAttr FileSystem.FileAttr
FileDate FileSystem.FileDateTime
FileLen FileSystem.FileLen
Filter Microsoft.VisualBasic.Strings.Filter
Fix Microsoft.VisualBasic.Conversion.Fix
FormatCurrency Microsoft.VisualBasic.Strings.FormatCurrency
FormatDateTime Microsoft.VisualBasic.Strings.FormatDateTime
FormatNumber Microsoft.VisualBasic.Strings.FormatNumber
FreeFile FileSystem.FreeFile
FV Financial.FV
GetAllSettings Interaction.GetAllSettings
GetAttr FileSystem.GetAttr
GetObject Microsoft.VisualBasic.Interaction.GetObject
Hex Microsoft.VisualBasic.Conversion.Hex
Hour Microsoft.VisualBasic.DateAndTime.Hour
IIF Interaction.IIf
Input FileSystem.InputString
InputBox Microsoft.VisualBasic.Interaction.InputBox
InStr, InstrB Microsoft.VisualBasic.Strings.InStr
InStrRev Microsoft.VisualBasic.Strings.InStrRev
Int Microsoft.VisualBasic.Conversion.Int
Ipmt Financial.IPmt
IRR Financial.IRR
IsArray Microsoft.VisualBasic.Information.IsArray
IsDate Microsoft.VisualBasic.Information.IsDate
IsEmpty Microsoft.VisualBasic.Information.IsEmpty
IsMissing Information.IsNothing
IsNull System.Convert.IsDBNull
IsNumeric Microsoft.VisualBasic.Information.IsNumeric
IsObject Information.IsReference
Join Microsoft.VisualBasic.Strings.Join
LBound Microsoft.VisualBasic.Information.LBound
LCase System.String.ToLower
Left, LeftB System.String.Substring(0,..)
Len, LenB Strings.Len
Loc FileSystem.Loc
Lof FileSystem.LOF
Log System.Math.Log
LTrim System.String.TrimStart
Mid, MidB System.String.Substring
Minute Microsoft.VisualBasic.DateAndTime.Minute
Mirr Financial.MIRR
Month Microsoft.VisualBasic.DateAndTime.Month
MonthName Microsoft.VisualBasic.DateAndTime.MonthName
MsgBox System.Windows.Forms.MessageBox.Show
Now System.DateTime.Now
NPer Financial.NPer
PMT Financial.Pmt
PPMT Financial.PPmt
PV Financial.PV
Oct Microsoft.VisualBasic.Conversion.Oct
QBColor Information.QBColor
Rate Financial.Rate
Replace Microsoft.VisualBasic.Strings.Replace
RGB Microsoft.VisualBasic.Information.RGB
Right, RightB System.String.Substring
Rnd Microsoft.VisualBasic.VBMath.Rnd
Round System.Math.Round
RTrim System.String.TrimEnd
Second Microsoft.VisualBasic.DateAndTime.Second
Seek FileSystem.Seek
Sgn System.Math.Sign
Shell Interaction.Shell
Sin System.Math.Sin
SLN Financial.SLN
Space new String(' ',...)
SPC FileSystem.SPC
Split Microsoft.VisualBasic.Strings.Split
Sqr System.Math.Sqrt
Str Conversion.Str
StrConv Strings.StrConv
StrComp System.String.Compare
String New String()
StrReverse Microsoft.VisualBasic.Strings.StrReverse
Switch Interaction.Switch
Syd Financial.SYD
Tab FileSystem.TAB
Tan System.Math.Tan
Time Microsoft.VisualBasic.DateAndTime.TimeOfDay
Timer Microsoft.VisualBasic.DateAndTime.Timer
TimeSerial Microsoft.VisualBasic.DateAndTime.TimeSerial
TimeValue Microsoft.VisualBasic.DateAndTime.TimeValue
Trim System.String.Trim
TypeName Microsoft.VisualBasic.Information.TypeName
UBound Microsoft.VisualBasic.Information.UBound
UCase System.String.ToUpper
Val Conversion.Val
VarType Microsoft.VisualBasic.Information.VarType
Weekday Microsoft.VisualBasic.DateAndTime.Weekday
WeekdayName Microsoft.VisualBasic.DateAndTime.WeekdayName
Year Microsoft.VisualBasic.DateAndTime.Year
DoEvents System.Windows.Forms.Application.DoEvents()
CallByName UNSUPPORT
CVErr UNSUPPORT
Error UNSUPPORT 
GetAutoServerSettings UNSUPPORT
GetAutoServerSettings UNSUPPORT
IMEStatus UNSUPPORT
IsError UNSUPPORT
LoadPicture UNSUPPORT
LoadResPicture UNSUPPORT
LoadResData UNSUPPORT
LoadResString UNSUPPORT

 

반응형
728x90
반응형
Func<Point, List<Point>, int> sortDistance = (point, pointList) =>
{
    KeyValuePair<double, int> smallestDistance = new KeyValuePair<double, int>();
    for (int i = 0; i < pointList.Count; i++)
    {
        double distance = Math.Sqrt(Math.Pow(point.X - pointList[i].X, 2) + Math.Pow(point.Y - pointList[i].Y, 2));

        if (i == 0)
        {
            smallestDistance = new KeyValuePair<double, int>(distance, i);
        }
        else
        {
            if (distance < smallestDistance.Key)
            {
                smallestDistance = new KeyValuePair<double, int>(distance, i);
            }
        }
    }

    return smallestDistance.Value;
};

var inputList = new List<Point>() { new Point(2,7), new Point(12, 5), new Point(0, 3), new Point(5, 10), new Point(4, 5) };
List<Point> output = new List<Point>();
output.Add(inputList[sortDistance(new Point() { X = 0, Y = 0 }, inputList)]);
inputList.Remove(output[0]);
int x = 0;
for (int i = 0; i < inputList.Count + x; i++)
{
    output.Add(inputList[sortDistance(output[output.Count - 1], inputList)]);
    inputList.Remove(output[output.Count - 1]);
    x++;
}

결과

반응형
728x90
반응형

xaml

      <CheckBox
      Command="{Binding SelfTestCommand}"
      CommandParameter="{Binding RelativeSource={RelativeSource self}, Path=IsChecked}"/>

cs

        private DelegateCommand<bool?> selfTestCommand;

        /// <summary>
        /// SelfTest Command
        /// </summary>
        public ICommand SelfTestCommand
        {
            get
            {
                if (this.selfTestCommand== null)
                {
                    this.selfTestCommand= new DelegateCommand<bool?>((param) => OnSelfTestCommand(param));
                }

                return this.selfTestCommand;
            }
        }

        private void OnFalseCallCommand(bool? isChecked)
        {
        }

 

반응형
728x90
반응형

<TextBlock
    HorizontalAlignment="Left"
    FontSize="12"
    FontWeight="Normal"
    Text="{Binding DataFloat, StringFormat={}{0:N3}mm}" />

결과 (DataFloat = 1.5678 인 경우)

1.568mm

반응형
728x90
반응형

xaml 단에 아래 처럼 선언하고

xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"

<ComboBox ItemsSource="{Binding Datas}" SelectedItem="{Binding SelectedData}">
    <i:Interaction.Triggers>
        <i:EventTrigger EventName="SelectionChanged">
            <i:InvokeCommandAction Command="{Binding DataCommand}" />
        </i:EventTrigger>
    </i:Interaction.Triggers>
</ComboBox>

 

반응형
728x90
반응형

1. 만들기 탭 에서 쿼리디자인 선택

2. 테이블 표시 팝업이 뜨는데 X 버튼으로 닫기

3. SQL 보기 버튼 클릭

4. 아래 처럼 select 등의 쿼리문을 작성한 후

5. 실행버튼을 클릭해 쿼리 실행

쿼리실행을 하면 결과창으로 이동되면서 결과 데이터가 보여진다.

반응형
728x90
반응형

제페토월드를 만들기 위해서는 2020.3.9 버전이 필요하다
제페토빌드잇 도움말 링크에 있는 2020.3.9f1 은 Unity Hub 에서 지원되지 않는다
아래 링크에서 2020.3.9f1 을 찾아서 Unity Hub 초록색 버튼을 클릭하면 Unity Hub 에서 설치가 진행된다.

https://unity3d.com/get-unity/download/archive

 

Get Unity - Download Archive - Unity

Unity is the ultimate game development platform. Use Unity to build high-quality 3D and 2D games, deploy them across mobile, desktop, VR/AR, consoles or the Web, and connect with loyal and enthusiastic players and customers.

unity3d.com

반응형
728x90
반응형

https://m.post.naver.com/viewer/postView.naver?volumeNo=32459088&memberNo=41553262 

 

제페토와 게더타운, 내게 맞는 메타버스는?

[BY LG유플러스 유대감] <출처: https://www.naverz-corp.com/ / ZEPETO> <출처: https://www.gather.to...

m.post.naver.com

 

반응형

'IT Info' 카테고리의 다른 글

원격 데스크톱 연결 접속 IP 정보 삭제  (0) 2022.04.27
Tistory 코드블럭 복사시 개행되지 않을 때  (0) 2022.04.23
[펌] 제페토와 게더타운  (0) 2022.04.11
유용한 단축키  (0) 2022.04.08
GIS (지리정보 시스템)  (0) 2022.03.11
laninfo.exe 정체  (0) 2022.03.07
728x90
반응형

우연히 보게된건데 엄청 유용하다

크롬에서 인터넷 창을 닫았을때 Shift+Ctrl+T 를 누르면 닫았던 탭들이 다시 열린다 이전에 열었던것들이 계속 순서대로 열리기때문에 정말 유용하다

특수문자 작성시 한글자음 + 한자 하면 특수문자가 나오는데 한줄만 나와서 찾기가 힘들었는데 저상태에서 Tab 를 누르면 전체가 한꺼번에 보여진다. (몰랐는데 한줄일때도 아래 >> 표시를 누르면 펼쳐진다.) 

 

 

반응형

'IT Info' 카테고리의 다른 글

Tistory 코드블럭 복사시 개행되지 않을 때  (0) 2022.04.23
[펌] 제페토와 게더타운  (0) 2022.04.11
유용한 단축키  (0) 2022.04.08
GIS (지리정보 시스템)  (0) 2022.03.11
laninfo.exe 정체  (0) 2022.03.07
mousocoreworker.exe 파일  (0) 2022.03.04
728x90
반응형
    public class BooleanToVisibilityConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if (true.Equals(value))
            {
                return Visibility.Visible;
            }

            if ("Hidden".Equals((parameter ?? "").ToString()))
            {
                return Visibility.Hidden;
            }

            return Visibility.Collapsed;
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
반응형

+ Recent posts