Esempio n. 1
0
 private void DynObjectsEditor_Shown(object sender, EventArgs e)
 {
     if (isAutoOpen)
     {
         progress_bar("Reading File", 0, 0);
         listBox_items.Enabled = false;
         listBox_items.Rows.Clear();
         dynObjcts = new DynObjcts();
         if (dynObjcts.ReadFile(autoOpenPath))
         {
             listBox_items.Enabled = true;
             listBox_items.Refresh();
             listBox_items.RowCount = dynObjcts.objects.Length;
             progress_bar("Ready", 0, 0);
         }
     }
 }
Esempio n. 2
0
        private void jPictureBox1_Click(object sender, EventArgs e)
        {
            OpenFileDialog load = new OpenFileDialog();

            load.Filter = "GShop (*.data)|*.data|All Files (*.*)|*.*";
            if (load.ShowDialog() == System.Windows.Forms.DialogResult.OK && File.Exists(load.FileName))
            {
                progress_bar("Reading File", 0, 0);
                listBox_items.Enabled = false;
                listBox_items.Rows.Clear();
                dynObjcts = new DynObjcts();
                if (dynObjcts.ReadFile(load.FileName))
                {
                    listBox_items.Enabled = true;
                    listBox_items.Refresh();
                    listBox_items.RowCount = dynObjcts.objects.Length;
                    progress_bar("Ready", 0, 0);
                }
            }
        }