예제 #1
0
 private void FormHexTableEditor_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (!UtilsGui.askToSave(ref dirty, saveToFile, () => { }))
     {
         updateSaveVisibility();
         e.Cancel = true;
     }
 }
예제 #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            loadData();
            chunk = getOjbVideoChunk(0);
            reloadVideo();
            int videoCount = ConfigScript.videoObjOffset.recCount;

            UtilsGui.setCbItemsCount(cbVideo, videoCount);
            cbVideo.SelectedIndex = 0;

            updateBackColor(Color.Black);
            cbScale.SelectedIndex = 3; //default scale = 4
        }