コード例 #1
0
        public Form1()
        {
            InitializeComponent();
            //if (!File.Exists(cachePath))
            //{
            //    File.Create(cachePath).Close();
            //}
            //using (Stream stream = new FileStream(cachePath,FileMode.Open))
            //{
            //    StreamReader reader = new StreamReader(stream);

            //}
            SetBatchLocation.Hide();
            PathOfBatch.Hide();
            EntityName.Hide();
            EntityNameLabel.Hide();
            positionDic = new Dictionary <PanePosition, string>();
            positionDic.Add(PanePosition.Bottom, "_Down_Frame");
            positionDic.Add(PanePosition.BottomLeft, "_Down_Left_Frame");
            positionDic.Add(PanePosition.BottomRight, "_Down_Right_Frame");
            positionDic.Add(PanePosition.BottomWalled, "_Down_Single_Frame");
            positionDic.Add(PanePosition.Center, "_Middle_Frame");
            positionDic.Add(PanePosition.CenterFull, "_Full_Frame");
            positionDic.Add(PanePosition.CenterWalledHorizontal, "_Horizontal_Middle_Single_Frame");
            positionDic.Add(PanePosition.Left, "_Left_Frame");
            positionDic.Add(PanePosition.Right, "_Right_Frame");
            positionDic.Add(PanePosition.CenterWalledVertical, "_Vertical_Middle_Single_Frame");
            positionDic.Add(PanePosition.TopLeft, "_Top_Left_Frame");
            positionDic.Add(PanePosition.TopRight, "_Top_Right_Frame");
            positionDic.Add(PanePosition.TopWalled, "_Top_Single_Frame");
            positionDic.Add(PanePosition.RightWalled, "_Right_Single_Frame");
            positionDic.Add(PanePosition.LeftWalled, "_Left_Single_Frame");
            positionDic.Add(PanePosition.Top, "_Top_Frame");
        }
コード例 #2
0
 private void SingleBlockstate_CheckedChanged(object sender, EventArgs e)
 {
     BatchMode.Checked = !SingleBlockstate.Checked;
     SetBatchLocation.Hide();
     PathOfBatch.Hide();
     EntityName.Show();
     EntityNameLabel.Show();
 }