예제 #1
0
 private void linkAddTable_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     if (ReportControlsState.appManager.Map.GetPointLayers().Count() > 0)
     {
         var fmTable = new Forms.GranulometryTableForm();
         fmTable.FormClosed += fmTable_FormClosed;
         fmTable.ShowDialog();
     }
     else
     {
         MessageBox.Show("Please add feature or point layer.");
     }
 }
예제 #2
0
        void editTablelink_Click(object sender, EventArgs e)
        {
            var link = sender as LinkLabel;
            var index = Convert.ToInt32(link.Name);

            if (ReportControlsState.appManager.Map.GetPointLayers().Count() > 0)
            {
                var fmTable = new Forms.GranulometryTableForm(TablesList[index]);
                fmTable.isUpdate = true;
                fmTable.DeleteIndex = index;
                fmTable.FormClosed += fmTable_FormClosed;
                fmTable.ShowDialog();
            }
            else
            {
                MessageBox.Show("Please add feature or point layer.");
            }
        }