Exemple #1
0
        private void DoLoading()
        {
            if (isAutoOpen)
            {
                locked = true;
                Read   = new ExtraDrop();
                if (Read.ReadFile(autoOpenPath))
                {
                    try
                    {
                        RegionDataGrid.RowCount = Read.drops.Count;

                        Loaded = true;
                        locked = false;
                        try
                        {
                            RegionDataGrid.Rows[0].Selected = true;
                            RegionDataGrid.CurrentCell      = RegionDataGrid.Rows[0].Cells[0];
                            RegionDataGrid_SelectionChanged(RegionDataGrid, null);
                        }
                        catch { }
                    }
                    catch
                    {
                        return;
                    }
                }
                locked = false;
            }
        }
Exemple #2
0
        private void jPictureBox1_Click(object sender, EventArgs e)
        {
            OpenFileDialog load = new OpenFileDialog();

            load.Filter = "extra_drops (extra_drops.sev)|*.sev|All Files (*.*)|*.*";
            if (load.ShowDialog() == System.Windows.Forms.DialogResult.OK && File.Exists(load.FileName))
            {
                autoOpenPath = load.FileName;
                isAutoOpen   = true;

                Read = null;
                RegionDataGrid.RowCount = 0;
                DoLoading();
            }
        }